package top.aiprogram.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import top.aiprogram.dao.ItemsMapper;
import top.aiprogram.dao.ItemsMapperCustom;
import top.aiprogram.po.Items;
import top.aiprogram.po.ItemsQueryVo;

import javax.annotation.Resource;
import java.util.List;

/**
 * Created by ASUS on 2017/6/15.
 */
@Service("itemServiceImpl")
public class ItemserviceImpl implements ItemService {


    @Autowired
    private ItemsMapperCustom itemsMapperCustom;

    @Autowired
    private ItemsMapper itemsMapper;

    @Override
    public Items findById(Integer id) throws Exception {

        if(id!=null){
            Items items = itemsMapper.selectByPrimaryKey(id);
            return items;

        }

        return null;
    }
}
